package com.woniu.order.controller;

import com.woniu.common.utils.PageData;
import com.woniu.common.utils.ResponseData;
import com.woniu.order.dto.ZfPowerUserDto;
import com.woniu.order.pojo.ZsbJwt;
import com.woniu.order.service.ZsbUumsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/uums")
public class ZsbUumsController {
    @Autowired
    private ZsbUumsService zsbUumsService;

    @GetMapping("/queryAllSale/{roleId}")
    public ResponseData<?> queryAllSale(@PathVariable("roleId") String roleId){//@RequestBody PageData<ZfPowerUserDto> pageData
        return zsbUumsService.queryAll(roleId);
    }

    @RequestMapping("/getUser")
    public ZsbJwt getUser(){
        return zsbUumsService.getUser();
    }
}
